package com.ruoyi.bookkeeping.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 动态回复对象 book_dynamic_reply
 * 
 * @author ruoyi
 * @date 2023-02-24
 */
@Data
@ApiModel("动态回复对象")
public class BookDynamicReply
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("回复ID")
    @TableId(type = IdType.AUTO)
    private Long dynamicReplyId;

    @ApiModelProperty("帖子ID")
    @Excel(name = "帖子ID")
    private Long dynamicId;

    @ApiModelProperty("被回复人")
    @Excel(name = "被回复人")
    private Long beReplyUserId;


    @ApiModelProperty("回复人")
    @Excel(name = "回复人")
    private Long replyUserId;

    @ApiModelProperty("回复内容")
    @Excel(name = "回复内容")
    private String replyContent;

    @ApiModelProperty("点赞数量")
    @Excel(name = "点赞数量")
    private Long dynamicGoodNum;

    @ApiModelProperty("删除标志（0代表存在 2代表删除）")
    @TableLogic(value = "0",delval = "2")
    private String delFlag;

    @ApiModelProperty("创建者")
    private String createBy;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新者")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
